<template>
  <div id="app">
    <van-skeleton title :row="3" v-if="aa" />

    <router-view v-slot="{ Component }" v-else>
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </div>
</template>

<script setup>
import { ref, watch } from "vue"
let aa = ref(true)
import { useRoute, useRouter } from 'vue-router'
const router = useRouter()
const route = useRoute()
watch(route, (newValue, oldValue) => {
  aa.value=true
  setTimeout(() => {
    aa.value = false;
  }, 200)
})

</script>

<style lang="scss" scoped></style>